#ifndef OPTIONSWIN_H
#define OPTIONSWIN_H

#include <QtGui/QDialog>
#include <QKeyEvent>
#include <QDebug>
#include <QMessageBox>
#include <QTimerEvent>
#include <QFileDialog>

namespace Ui {
    class OptionsWin;
}

class OptionsWin : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(OptionsWin)
public:
    explicit OptionsWin(QWidget *parent = 0);
    virtual ~OptionsWin();
    void keyPressEvent(QKeyEvent *evt);
    void show();
    void hotkeySet(QString key);
public slots:
    void okClick();
    void applyClick();
    void cancelClick();
    void editHotkey1();
    void editLocation();
protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::OptionsWin *m_ui;
    bool save();
    void load();
};

#endif // OPTIONSWIN_H
